const {createProxyMiddleware} = require('http-proxy-middleware')

module.exports = function(path){
    path.use(
        createProxyMiddleware('/tomcat',{
            target:'http://localhost:8080',
            changeOrigin: true,
            pathRewrite:{'^/tomcat':''}
        })
    )
}